package com.example.p16;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.SimpleTimeZone;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Date date = new Date();
        String StrDateFormat = "yyyy-MM-dd HH:mm:ss";
        SimpleDateFormat sdf = new SimpleDateFormat(StrDateFormat);
        System.out.println (sdf.format(date));
    }
}
